﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Data;

namespace ArbabTravelsERP.Models
{
    public class MENU
    {
        [Key] 
        [Display(Name = "Menu ID")]
        public int LMS_MENU_ID { get; set; }

        [Display(Name = "Menu Name")]
        [Required(ErrorMessage = "Please Enter Menu Name")]
        public string MENU_NAME { get; set; }

        [Display(Name = "Menu Title")]
        [Required(ErrorMessage = "Please Enter Menu Title")]
        public string MENU_TITLE { get; set; }

        [Display(Name = "Menu URL")]
        //[Required(ErrorMessage = "Please Enter Menu URL")]
        public string MENU_URL { get; set; }

        [Display(Name = "Page Name")]
        //[Required(ErrorMessage = "Please Enter Page Name")]
        public string PAGE_NAME { get; set; }

        [Display(Name = "Controller Name")]
        //[Required(ErrorMessage = "Please Enter Controller Name")]
        public string CONTROLLER_NAME { get; set; }

        [Display(Name = "Parent Menu")]
        public string PARENT_MENU_ID { get; set; }

        [Display(Name = "Is Parent")]
        [Required(ErrorMessage = "Please Select option")]
        public bool IS_PARENT { get; set; }

        [Display(Name = "Created By")]
        public string CREATED_BY { get; set; }

        private DateTime _CREATED_DATE = DateTime.Now;
        public DateTime CREATED_DATE { get { return _CREATED_DATE; } set { _CREATED_DATE = value; } }

        [Display(Name = "Remark")]
        public string REMARK { get; set; }

        //Menu Mapping
        public bool Is_Active { get; set; }

        public DataSet MenuDS { get; set; }
        public DataTable MenuDT { get; set; }

        public string PARENT_MENU_NAME { get; set; }

        //[Required(ErrorMessage = "Please Select Channel")]
        public string CHANNEL_CODE { get; set; }

        //[Required(ErrorMessage = "Please Select User Type")]
        public string USER_TYPE_ID { get; set; }
    }
}